<?php
/**
 * 演示MOD 
 * @copyright reginx.com
 * $Id$
 */
class test_mod extends mod {
    /**
     * 默认Act
     *
     */
    function indexAct(){
        $v = array(
        'ni hao !!!!' ,
        'hello'
        );
        $GLOBALS['_CACHE']->set('demo@key' , $v , 10 , '');

        var_dump($GLOBALS['_CACHE']->get('demo@key'));
        $a =  new admin_tab();
        //$GLOBALS['_CACHE']->clear();
    }
    
    function reginxAct(){
//        $a = new rgx();
//        $a->setName('#123');
//        echo($a->getName());
        
        $v = array(
        'ni hao !!!!' ,
        'hello'
        );
        $GLOBALS['_CACHE']->set('demo@key' , $v , 10 , '');
        $this->assign('rs' , $GLOBALS['_CACHE']->get('demo@key'));
        //xcache_clear_cache();
        die();
        $this->display('test.html');
    }
    
    function pyAct(){
        var_dump(py_lib::get('我是-中a@!SAD))(**){}:":<>>?>sdasda国人一九四二' , '-'));
    }
}
?>